package pool.bean;

import java.util.Hashtable;
import java.util.Vector;

import control.RequestParameter;
import dbmanager.DBManager;


/**
 * @author abc
 * Bean is a interface which is implemented by the SubBean class.
 * */
public interface Bean 
{
	
	public void setDBManager(DBManager sqlDB);
	public void setReqParam(RequestParameter reqParam);
	public void setTable(String tableName);
	public void setProcess(String process);
	public void setId(String id);
	
	public void setHashtable(Hashtable<Object,Object> hashtable);
	public void setPropertyVector(Vector<Object> vector);
	public void setTransDetailsVector(Vector<Object> vector);
	
	public void setOldHashtable(Hashtable<Object,Object> hashtable);
	public void setNewHashtable(Hashtable<Object,Object> hashtable);
	public void setOldPropertyVector(Vector<Object> vector);
	public void setNewPropertyVector(Vector<Object> vector);
	
	public StringBuffer insert();
	public StringBuffer update();
	public StringBuffer view();
	public StringBuffer delete();
	
	public void setViewHashtable(Hashtable<Object,Object> hashtable);
	public void setPropertyViewHashtable(Hashtable<Object,Object> hashtable);
	public void setTransDetailsViewHashtable(Hashtable<Object,Object> hashtable);
	public boolean getResult(); 
}
